package com.seeyon.apps.restext;

import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import com.seeyon.client.CTPRestClient;

public class RestDocsDemorestsample111  {

//获取文档列表接口:根据文档ID[doc_resources表ID]获取目录或文件列表
public static void testArchiveList() {
   CTPRestClient client = ClientResource.getInstance().resouresClent();
   Map res = new HashMap() {
       {
           put("archiveID", "8545088011156669489"); //archiveID:文档ID(必填):doc_resources表ID
           put("searchType", "");//searchType:查询类型(非必填)
           put("propertyName", "");//propertyName:查询参数名称(非必填)
           put("simple", "");//simple:是否简单查询(非必填)
           put("value1", "");//value1:查询值(非必填)
           put("pageNo", "1");//页数(必填)
           put("pageSize", "20");//每页条数(必填)
       }
   };

    String result = client.post("docs/search",res, String.class);
    System.out.println(result);
}

public static void main(String args[]){
   testArchiveList();
}
}